home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / games / how_t000.swf / scripts / __Packages / mx / transitions / easing / Strong.as
Encoding:
Text File  |  2010-11-09  |  531 b   |  24 lines

  1. class mx.transitions.easing.Strong
  2. {
  3.    static var version = "1.1.0.52";
  4.    function Strong()
  5.    {
  6.    }
  7.    static function easeIn(t, b, c, d)
  8.    {
  9.       return c * (t /= d) * t * t * t * t + b;
  10.    }
  11.    static function easeOut(t, b, c, d)
  12.    {
  13.       return c * ((t = t / d - 1) * t * t * t * t + 1) + b;
  14.    }
  15.    static function easeInOut(t, b, c, d)
  16.    {
  17.       if((t /= d / 2) < 1)
  18.       {
  19.          return c / 2 * t * t * t * t * t + b;
  20.       }
  21.       return c / 2 * ((t -= 2) * t * t * t * t + 2) + b;
  22.    }
  23. }
  24.